package com.zeroone.star.systemhome.service.file;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zeroone.star.project.dto.systemhome.FileDTO;
import com.zeroone.star.project.vo.systemhome.FileStatisticsVO;
import com.zeroone.star.systemhome.entity.FileAttachment;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description: 文件的service接口
 * @author: dashuai
 * @date: 2024/11/18 16:32
 **/
public interface FileService extends IService<FileAttachment> {
    /**
     * @description: 获取文件信息
     * @author: dashuai
     * @date: 2024/11/18 16:36
     * @param: [id] 登录人id
     * @return: java.util.List<com.zeroone.star.project.dto.systemhome.FileDTO>
     **/
    List<FileDTO> listMyFile(String id);

    /**
     * @description: 统计文件信息
     * @author: dashuai
     * @date: 2024/11/18 16:42
     * @param: [id] 登录人id
     * @return: com.zeroone.star.project.vo.systemhome.FileStatisticsVO
     **/
    FileStatisticsVO countFile(String id);
}
